package com.clw.repository;

import com.clw.dataobject.Produce;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

/**
 * Created by Administrator on 2018-03-08.
 */
public interface ProduceRepository extends JpaRepository<Produce,Integer>{
    Page<Produce> findAll(Specification<Produce> spec, Pageable pageable);

    Long count(Specification<Produce> spec);
}
